package com.dnzx.client.impl;

import java.util.List;

import org.dnzx.framework.page.PageResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dnzx.client.IRoleClient;
import com.dnzx.model.system.RoleBO;
import com.dnzx.service.IRoleService;

/**
 * <p>系统后台角色操作client实现类</p>
 *
 * @author Steven
 * @version V1.0
 * @Package com.rcss.client.service.impl
 * 
 * @date 2017/9/17 11:45
 */
@Service
public class RoleClientImpl implements IRoleClient {

	private static Logger logger = LoggerFactory.getLogger(RoleClientImpl.class);
	
	@Autowired
	private IRoleService roleService;

	
	@Override
    public void save(RoleBO roleBO) throws Exception {
        this.roleService.save(roleBO);
    }
    
    @Override
    public void delete(Long id) throws Exception {
        this.roleService.delete(id);
    }

    @Override
    public void update(RoleBO roleBO) throws Exception {
        this.roleService.update(roleBO);
    }
    
    @Override
    public RoleBO get(Long id) {
        return this.roleService.get(id);
    }

	@Override
	public List<RoleBO> queryList(RoleBO roleBO) {
		return this.roleService.queryList(roleBO);
	}
	
	@Override
	public PageResult<List<RoleBO>> queryPage(RoleBO roleBO, PageResult<List<RoleBO>> pageResult) {
		return this.roleService.queryPage(roleBO, pageResult);
	}
	
}
